import request from '@/utils/request'

// 获取数据库的表列表
export function listTables(dbId) {
  return request({
    url: '/datasync/table/list/' + dbId,
    method: 'get'
  })
}

// 获取表的列信息
export function listTableColumns(dbId, tableName) {
  return request({
    url: '/datasync/table/columns',
    method: 'get',
    params: {
      dbId: dbId,
      tableName: tableName
    }
  })
} 